continue;
}
- let corner = new HotCorner(this);
+ let corner = new HotCorner(this, cornerX, cornerY);
this.hotCorners.push(corner);
- corner.actor.set_position(cornerX, cornerY);
- this.addChrome(corner.actor);
}
this.emit('hot-corners-changed');
const HotCorner = new Lang.Class({
Name: 'HotCorner',
- _init : function(layoutManager) {
+ _init : function(layoutManager, x, y) {
// We use this flag to mark the case where the user has entered the
// hot corner and has not left both the hot corner and a surrounding
// guard area (the "environs"). This avoids triggering the hot corner
this._entered = false;
this.actor = new Clutter.Actor({ name: 'hot-corner-environs',
+ x: x, y: y,
width: 3,
height: 3,
reactive: true });
this._corner._delegate = this;
this.actor.add_child(this._corner);
+ layoutManager.addChrome(this.actor);
if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL) {
this._corner.set_position(this.actor.width - this._corner.width, 0);